package com.zju.DoctorGo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

@Data
@TableName("schedule")
public class Schedule {
    /**
     * 排班ID
     */
    @TableId(value = "schedule_id", type = IdType.AUTO)
    private Long scheduleId;

    /**
     * 时间段
     */
    @TableField(value = "time")
    private String time;

    /**
     * 医生ID
     */
    @TableField(value = "doctor_id")
    private String doctorId;

    /**
     * 日期
     */
    @TableField(value = "date")
    private String date;

    /**
     * 房间ID
     */
    @TableField(value = "room_id")
    private String roomId;

    // 全参构造函数
    public Schedule(Long scheduleId, String time, String doctorId, String date, String roomId) {
        this.scheduleId = scheduleId;
        this.time = time;
        this.doctorId = doctorId;
        this.date = date;
        this.roomId = roomId;
    }

    // 无参构造函数
    public Schedule() {
    }
}
